#include <windows.h>
#include <process.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <iostream>
#include "ApplicationH.h"
#include <math.h>


void runTests();

int main()
{
   Application A;   
  
   A.applicationRun();

	//Shape s;

  //int x,y;

   //runTests();

  return 0;
}

void runTests()
{

	list<Shape *> L2;
	Point hit;
	int x,y,dirX,dirY,posX,posY;
	float sqrtResult;

	Animation a;

	Circle c1;
	Rectangl r;

	c1.setPos(40,10);    //c2.setPos(60,10);       c3.setPos(39,10);
	c1.setSize(10);	    // c2.setSize(4);	         c3.setSize(5);

	L2.push_front(&c1);  
	
    c1.setPos(40,10);
	c1.setSize(10);

	r.setPos(24,15);
	r.setSize(6,6);
	r.setMove(1,-1);
	c1.setMove(0.5,-1);

	L2.push_front(&r); 
	
    //a.AnimationWithClashesPoly(L2,1);
	a.AnimationWithoutClashesPoly(L2,1);
}





/*if(c2.getHitPoint(&c1,hit))
	{
		hit.getPos(x,y);
		gotoxy(0,0);
		cout << "x is: " << x << endl << "y is: " << y;

		if(c1.isXaxis(hit)) cout << "ok";

		_getch();

		system("cls");

		c1.resetDirectionX();
		
		c1.getIntegerDirection(dirX,dirY);
		c1.getPos(posX,posY); // getting the pos
		c1.setPos(posX+dirX,posY+dirY); // resetting the pos according to Borders reset

	    c1.draw2();
	    c2.draw2();
	}
	*/